
import java.io.*;

public class HomeWork10{
    public static void main(String[] args) throws IOException {
        File f = new File("abc.dat");
        OutputStream os = new FileOutputStream(f);
        int a[]={2,4,6,8,10};
        for (int i = 0; i < a.length; ++i) {
            os.write(a[i]);
        }
        os.close();
    }
}